package exceptionExercise;

import java.io.FileNotFoundException;

public class ThrowDemo {
    public static void main(String[] args)  {
        Student stu=new Student();


        try {
            stu.setAge(1000);
            System.out.println("学生的年龄为："+stu.getAge());
        } catch (FileNotFoundException e) {
            e.printStackTrace();
        }




    }
}
